package org.example.service;


import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.spring.AiService;
import dev.langchain4j.service.spring.AiServiceWiringMode;


/**
 * 智能体接口
 */

@AiService(
        wiringMode = AiServiceWiringMode.EXPLICIT,
        chatModel = "qwenChatModel",
        chatMemoryProvider = "chatAgentMemoryProvider",
        tools = "aiChatAgentTools",
        contentRetriever = "contentRetriever"
)
public interface AiChatAgent {
    @SystemMessage(fromResource = "ai_chat_agent.txt")
    String chat(@MemoryId Long userId, @UserMessage String message);
}
